package cn.web.demo.mapper;

import cn.web.demo.model.Permission;
import cn.web.demo.model.Role;

import java.util.List;

public interface RoleMapper {
    public List<Role> findAllRoles();

    public void save(Role role);

    public void intRolePermission(Integer roleId,String ids);

    public Role FindByRoleId(Integer id);

    public List<Integer> findPermissionIdsByRoleId(int id);

    public void findRoleupdate(Role role);

    public void findRolePermissionDelt(int id);

    public void findRoleDelt(int id);
}
